package com.estun.backroundManagementService.modules.position.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 工位表
 * </p>
 *
 * @author machine
 * @since 2023-02-02
 */
@Data
@ApiModel(value="PositionQueryResult对象", description="查询工位出参")
public class PositionQueryResult {

    @ApiModelProperty(value = "id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "工位名称")
    private String name;

    @ApiModelProperty(value = "工站描述")
    private String remark;

    @ApiModelProperty(value = "生产线编号")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long productLineId;

    @ApiModelProperty(value = "生产线名称")
    private String productLineName;

    @ApiModelProperty(value = "工站编号")
    @JsonSerialize(using= ToStringSerializer.class)
    private String stationId;

    @ApiModelProperty(value = "工站名称")
    private String stationName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

}
